package AddressService

import (
	"context"
	"gdshop-font-api-go/app/request/AddressReq"
	"gdshop-font-api-go/library/response"
)

func Details(ctx context.Context, parames *AddressReq.Details) *response.JsonResponse {
	addressModel := GetMyAddressModel(ctx, parames.Id, int(parames.MemberId))
	if addressModel == nil {
		return response.FailByRequestMessage(nil, "找不到数据")
	}

	return response.SuccessByRequestMessageData(nil, "成功", addressModel)
}
